<div class="container-fluid">
	<div id="groups">
	  	<div class="row">
	  		<div class="col-md-9"><i class="fa fa-group green"></i> <h2 class="inline">Grupos de jugadores <small>(Grupos de amigos en los que estás anotado)</small></h2>    </div>
  			<div data-toggle="modal" data-target="#newGroupModal" class="col-md-3" style="margin-top: 26px; margin-bottom: 10px; text-align: right; cursor: pointer;"><p class="green"><span class="glyphicon glyphicon-plus green"></span> <u>Nuevo grupo</u></p></div>
		</div>
	  	
	  	<div class="row group-list">
	  	  <div ng-repeat="group in groups.Member" class="col-md-4">
	      		<div class="bordered text-center">
	      			<div class="bordered-item-button"><i ng-click="openGroup(group.id)" class="fa fa-pencil gray"></i></div>
		    		<p class="text-center img-container md"><img src="{{ group.image }}" /></p>
		    		<h2>{{ group.name }}</h2>
		    		<p>{{ group.users == undefined ? 0 : group.users.length }} jugadores</p>
		    	</div>
	      </div>
	    </div>
    </div>
</div>

	<div id="newGroupModal" class="modal fade">
  		<div class="modal-dialog modal-dialog-center">
    		<div class="modal-content">
      			<div class="modal-header">
        			<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
      			</div>
      			<div class="modal-body">
        			<h2 class="darkGray no-margin">Armá y jugá partidos entre amigos</h2>
					<h4>Juntá a los de siempre, a tu equipo, los del laburo, etc.</h4>
					<p style="margin: 2.1rem auto; width: 38rem;">
						<input id="newGroupName" type="text" class="form-control" placeholder="Nombre del nuevo grupo" required />
					</p>
					<div id="newGroupButton" class="button button-green medium" ng-click="newGroup()">
						<div><span class="glyphicon glyphicon-plus darkYellow"></span> crear</div>
					</div>
      			</div>
    		</div><!-- /.modal-content -->
  		</div><!-- /.modal-dialog -->
	</div><!-- /.modal -->